package com.source.chart.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.source.chart.VO.PoultrySalesChart;
import com.source.chart.VO.PoultrySalesCountChart;
import com.source.chart.VO.PoultrySalesVO;
import com.source.chart.VO.PoultrySpeciesCountChart;
import org.apache.ibatis.annotations.Param;

import java.math.BigInteger;
import java.util.List;
import java.util.Map;

public interface PoultrySalesChartService extends IService<PoultrySalesVO> {


    List<PoultrySalesVO> findAllSales(int house_id);

    Map<String, BigInteger> findSalesInYears(String parentId, String houseId);


//    HashMap<String, Long> findCountOfParentInYear(String houseId);

    PoultrySalesChart findCountOfParentByHouseId(String houseId);

    /**
     * 查询当年禽类种类销售的数量
     * @param houseId
     * @return
     */
    List<PoultrySpeciesCountChart> selectPoultryCategoryCountOfYear(String houseId);

    /**
     * 查询所有的
     * @param houseId
     * @return
     */
    List<PoultrySpeciesCountChart> selectPoultryCategoryCountOfAll(String houseId);

    /**
     * 统计每一个月的禽类销售量，按禽类分组
     * @param houseId
     * @return
     */
   PoultrySalesCountChart getPoultryCateCountOfMoth(String houseId);
}
